package com.zhaowenhao.hello.spring.framework.aop.aspect;

import java.lang.reflect.Method;

/**
 * AOP通知
 *
 * @author zwh
 */
public class WHAdvice {
    //所属切面
    private Object aspect;

    //所属切面中指定的方法
    private Method apsectMethod;

    //异常名字
    private String throwName;

    public WHAdvice(Object aspect, Method apsectMethod) {
        this.aspect = aspect;
        this.apsectMethod = apsectMethod;
    }

    public Object getAspect() {
        return aspect;
    }

    public void setAspect(Object aspect) {
        this.aspect = aspect;
    }

    public Method getApsectMethod() {
        return apsectMethod;
    }

    public void setApsectMethod(Method apsectMethod) {
        this.apsectMethod = apsectMethod;
    }

    public String getThrowName() {
        return throwName;
    }

    public void setThrowName(String throwName) {
        this.throwName = throwName;
    }
}
